/**
 * 
 */
package org.jenkon.commons.lang.utils;

/**
 * util class with helping methods for numerics.
 * 
 * @author jkonopka
 * 
 */
public final class NumberUtils {

	/**
	 * hide public constructor for this util class.
	 */
	private NumberUtils() {
	}

	/**
	 * @param value
	 *            the value to check of is positive
	 * @return <code>true</code> or <code>false</code>
	 */
	public static boolean isPositive(final Number value) {
		return value.doubleValue() >= 0;
	}

	/**
	 * @param value
	 *            the value to check of is negative
	 * @return <code>true</code> or <code>false</code>
	 */
	public static boolean isNegative(final Number value) {
		return !isPositive(value);
	}

}
